﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Diagnostics
Imports NUnit.Framework

Namespace Axial.Tests
    Public Class TestBase
        Protected Function VerifyMethodOutput(ByVal methodName As String, ByVal check As String) As String
            Dim code As String = JSWebTranslator.DissembleMethod([GetType]().GetMethod(methodName), New Object() {Me}).ToString()
            code = code.Trim()
            ' remove ending newline
            Trace.WriteLine(methodName)
            Trace.WriteLine("------------------------------------")
            Trace.WriteLine(code)
            Trace.WriteLine("")
            Assert.AreEqual(check, code.Substring(code.Length - check.Length, check.Length))
            Return code
        End Function
    End Class
End Namespace

